﻿using NUnit.Framework;
using ProjetoComperio.Framework.Web.Security.UrlEncrypt;

namespace ProjetoComperio.Test.ComperioFramework.Web.Security.UrlEncrypt
{
    [TestFixture]
    public class URLEncryptTest
    {
        [Test]
        public void TestEncript()
        {
            var valueToEncode = "Higor";
            var encodedString = URLEncrypt.EncryptToString(valueToEncode);
            Assert.IsTrue(encodedString != valueToEncode);
            Assert.IsTrue(URLEncrypt.DecryptFromString(encodedString) == valueToEncode);

        }
    }
}
